package lianxi2;

public class Account {
    private String name;
    private String idcard;
    private String password;
    private String sex;
    private double money = 0;
    private double limit;


    public Account() {
    }

    public Account(String name, String idcard, String password, String sex, double money, double limit) {
        this.name = name;
        this.idcard = idcard;
        this.password = password;
        this.sex = sex;
        this.money = money;
        this.limit = limit;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return idcard
     */
    public String getIdcard() {
        return idcard;
    }

    /**
     * 设置
     * @param idcard
     */
    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return money
     */
    public double getMoney() {
        return money;
    }

    /**
     * 设置
     * @param money
     */
    public void setMoney(double money) {
        this.money = money;
    }

    /**
     * 获取
     * @return limit
     */
    public double getLimit() {
        return limit;
    }

    /**
     * 设置
     * @param limit
     */
    public void setLimit(double limit) {
        this.limit = limit;
    }

    public String toString() {
        return "Account{name = " + name + ", idcard = " + idcard + ", password = " + password + ", sex = " + sex + ", money = " + money + ", limit = " + limit + "}";
    }
}
